/**
 * 
 */
package com.revenco.bi.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.revenco.bi.dao.TnColumnInfoDao;
import com.revenco.bi.model.TnColumnInfo;
import com.revenco.bi.service.TnColumnInfoService;

/**
 * @author LingJun
 * @version $Revision:1.0.0, 2014年1月13日 下午1:21:56 
 */
@Service
public class TnColumnInfoServiceImpl implements TnColumnInfoService {
	@Autowired
	private TnColumnInfoDao tnColumnInfoDao;
	
	public List<TnColumnInfo> getColumnsByTableId(String tableId) {
		return tnColumnInfoDao.getColumnsByTableId(tableId);
	}
	
	public TnColumnInfo getTNColumnInfoByName(String tableId, String name) {
		return tnColumnInfoDao.getTNColumnInfoByName(tableId, name);
	}

	public TnColumnInfo getNameById(String columnId) {
		// TODO Auto-generated method stub
		return tnColumnInfoDao.getNameById(columnId);
	}
}
